//一般直接写在一个js文件中
layui.use(['element','form','laydate'],function () {
    var form = layui.form,
        layer = layui.layer,
        laydate = layui.laydate;
    laydate.render({
        elem: '#siteTime' //指定元素
        ,type: 'time'
    });
    $("#baocun").on('click',function () {
        layer.msg("时间保存后，查房规则次日生效。",{time:2000},function () {
            $("#tijiao").submit();
        });
    })
});